package com.rfid.spec.tag;

import com.rfid.spec.L0_ISO15693_PICC;
import com.rfid.spec.L0_IdentifyData;
import com.rfid.spec.L0_IdentifyDataIso15693;

public abstract class L0_PICC_ICODESLIX2 extends L0_ISO15693_PICC {
    public long GetBlockSize() {
        return 4L;
    }

    public long GetBlocksCapacity() {
        return 28L;
    }

    public long GetId() {
        return 10L;
    }

    public String GetName() {
        return "NXP ICODE SLIX2";
    }

    public String GetDesc() {
        return "NXP ICODE SLIX2";
    }

    public boolean Identify(L0_IdentifyData pIdfData) {
        L0_IdentifyDataIso15693 p = (L0_IdentifyDataIso15693) pIdfData;
        if (p == null) return false;
        if (p.m_uid[0] == -32 && p.m_uid[1] == 4 && p.m_uid[2] == 1 && (byte) (p.m_uid[3] >> 3 & 0x3) == 1)
            return true;
        return false;
    }
}
